package com.smart_environmental_protection.service.ServiceImp;

import com.smart_environmental_protection.dao.TypesDao;
import com.smart_environmental_protection.pojo.Types;
import com.smart_environmental_protection.service.TypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TypesServiceImp implements TypesService {
    @Resource
    private TypesDao typesDao;

    @Override
    public List<Types> typeList() {
        return typesDao.typeList();
    }

    @Override
    public List<Types> typess(int parentId) {
        return typesDao.typess(parentId);
    }


}
